<?php


namespace App\Common\Model;


use Illuminate\Database\Eloquent\Model;

class Users extends Model
{
    public function users()
    {
        return $this->hasMany(Users::class, 'pid');
    }

    public function childrenUsers()
    {
        return $this->hasMany(Users::class,'pid')->with('users');
    }


}
